package com.baizhi.springboot.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class CarApplyFor {
    /*`id` int(11) NOT NULL AUTO_INCREMENT,
    car_id
  `driver` varchar(255) DEFAULT NULL,
  `user` varchar(255) DEFAULT NULL,
  `department` varchar(255) DEFAULT NULL,
  `retinue` varchar(255) DEFAULT NULL,
  `startdate` datetime DEFAULT NULL,
  `endtate` varchar(255) DEFAULT NULL,
  `destination` varchar(255) DEFAULT NULL,
  `mileage` varchar(255) DEFAULT NULL,
  `approver` varchar(255) DEFAULT NULL,
  `affair` varchar(255) DEFAULT NULL,*/
    private Integer id;
    private Integer car_id;
    private String driver;
    private String user;
    private String department;
    private String retinue;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endtate;
    private String destination;
    private String mileage;
    private String approver;
    private String affair;

    @Override
    public String toString() {
        return "CarApplyFor{" +
                "id=" + id +
                ", car_id=" + car_id +
                ", driver='" + driver + '\'' +
                ", user='" + user + '\'' +
                ", department='" + department + '\'' +
                ", retinue='" + retinue + '\'' +
                ", startdate=" + startdate +
                ", endtate=" + endtate +
                ", destination='" + destination + '\'' +
                ", mileage='" + mileage + '\'' +
                ", approver='" + approver + '\'' +
                ", affair='" + affair + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCar_id() {
        return car_id;
    }

    public void setCar_id(Integer car_id) {
        this.car_id = car_id;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getRetinue() {
        return retinue;
    }

    public void setRetinue(String retinue) {
        this.retinue = retinue;
    }

    public Date getStartdate() {
        return startdate;
    }

    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }

    public Date getEndtate() {
        return endtate;
    }

    public void setEndtate(Date endtate) {
        this.endtate = endtate;
    }

    public String getDestination() {
        return destination;
    }

    public void setDestination(String destination) {
        this.destination = destination;
    }

    public String getMileage() {
        return mileage;
    }

    public void setMileage(String mileage) {
        this.mileage = mileage;
    }

    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }

    public String getAffair() {
        return affair;
    }

    public void setAffair(String affair) {
        this.affair = affair;
    }

    public CarApplyFor(Integer id, Integer car_id, String driver, String user, String department, String retinue, Date startdate, Date endtate, String destination, String mileage, String approver, String affair) {
        this.id = id;
        this.car_id = car_id;
        this.driver = driver;
        this.user = user;
        this.department = department;
        this.retinue = retinue;
        this.startdate = startdate;
        this.endtate = endtate;
        this.destination = destination;
        this.mileage = mileage;
        this.approver = approver;
        this.affair = affair;
    }

    public CarApplyFor() {
    }
}
